#include "mySEH.h"
int ClearAllBreakPoint()
{
	ulong type = 0;
	int cmd = 0;
	ulong addr = 0;
	addr =  Getnextbreakpoint(addr,&type,&cmd);

	Deletebreakpoints(addr, addr + 1, 0);
	for (;addr;)
	{
		addr++;
		addr =  Getnextbreakpoint(addr,&type,&cmd);
		if (addr)
		{
			Deletebreakpoints(addr, addr + 1, 0);
		}
	}
	return 0;
}
int ClearBreakPoint(DWORD dwPos)
{
	ulong type = 0;
	int cmd = 0;
	ulong addr = 0;
	addr =  Getnextbreakpoint(dwPos,&type,&cmd);
	if (addr == dwPos)
	{
		Deletebreakpoints(addr, addr + 1, 0);
	}
	return 0;
}
int isBreakPoint(DWORD dwPos)
{
	ulong type = 0;
	int cmd = 0;
	ulong addr = 0;
	addr =  Getnextbreakpoint(dwPos,&type,&cmd);
	if (addr == dwPos)
	{
		return 1;
	}
	return 0;
}